import { defineStore } from 'pinia'
const useStore = defineStore('store', {
  // 开启数据缓存
  persist: {
    enabled: true
  },
  state: () => {
    return {
      isChecked: true
    }
  },
  actions: {
    changeChecked() {
      this.isChecked = !this.isChecked
    }
  }
})
export default useStore
